<?php

namespace app\common\validate\Business;

use think\Validate;

// 用户消费记录的验证器
class Source extends Validate
{
  protected $rule = [
    'name' => ['require', 'unique:business_source'],
  ];

  protected $message = [
    'name.require' => '客户来源必须填写',
    'name.unique'  => '客户来源已存在',
  ];
}
